Central Article

Using Regular Expressions in Macromedia Central


Table of Contents

  1. Introduction
  2. Regular Expressions Explained
  3. Regular Expression Syntax
  4. Implementing Regular Expressions in Central
  5. Testing Tips and Useful Examples
  6. Resources

Resources

I hope this article helps give you both a better understanding of regular expressions and their syntax as well the necessary information you need to implement them within Macromedia Central. Although I tried to cover the most important pieces of syntax and ways in which you might use regular expressions, there are many aspects of regular expressions that I could not cover here.

My advice is to acquire a solid understanding of everything in this article first, because that will get you most of the way on any project. Then look to the Central documentation, the Perl documentation, and the ECMAScript documentation for more specifics (see below). If you start to feel that a regular expression is becoming too complicated or too difficult to work with, start searching the docs and the web to find an easier way. Most likely there is one. Good luck!

Perl

Perl 5.8.0 Documentation: perlre (Perl regular expressions)
www.perldoc.com/perl5.8.0/pod/perlre.html

ECMAScript

ECMAScript Language Specification (Standard ECMA-262) (PDF format, 184K)
www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf

ECMAScript Language Specification (HTML version)
www.el-mundo.es/internet/ecmascript.html

Macromedia Central

Developing_Applications.pdf (delivered with the Central Software Development Kit)
www.macromedia.com/devnet/central/sdk/

Macromedia Central Product Site
www.macromedia.com/go/central/

Macromedia Central Developer Center
www.macromedia.com/devnet/central/

Central MX: A central place for the Central community (blog by David Bisset)
www.centralmx.com

RegExp Builder, a Central application to help create RegExp code (by Byron Saltysiak)
www.saltysiak.com/byron/regexp/installer.html

Regular Expressions

Regular Expression Library
www.regxlib.com

"Five Habits for Successful Regular Expressions" by Tony Stubblebine, author of Regular Expression Pocket Reference (O'Reilly & Associates, 2003)
www.onlamp.com/pub/a/onlamp/2003/08/21/regexp.html

Regular-Expressions.info: "The Premier Web Site About Regular Expressions"
www.regular-expressions.info